#include "mydialog.h"
#include "ui_mydialog.h"
#include <QtCore>

// inital values for sliders
int leftS = 250;
int rightS = 250;


/**********************
 * Constructor
 */
MyDialog::MyDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::MyDialog)
{
    ui->setupUi(this);
}
// end construtor


/**********************
 * Destructor
 */
MyDialog::~MyDialog()
{
    delete ui;
}
// end ~MyDialog()


/**********************
 * Returns left slider value
 */
int MyDialog::getLeft()
{
    return leftS;
}
// end getLeft()


/**********************
 * Returns right slider value
 */
int MyDialog::getRight()
{
    return rightS;
}
// end getRight()


/**********************
 * Slot for left slider
 */
void MyDialog::on_LeftSlider_valueChanged(int value)
{
    leftS = value;
}
// end on_LeftSlider_valueChanged(int value)


/**********************
 * Slot for right slider
 */
void MyDialog::on_RightSlider_valueChanged(int value)
{
    rightS = value;
}
// end on_RightSlider_valueChanged(int value)


